﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace LloydGame
{
    public class GameModel
    {
        protected Model m_model;
        protected Vector3 m_position;
        protected Vector3 m_rotation;
        protected Vector3 m_scale;
        
        public Model model
        {
            get
            {
                return m_model;
            }
        }
        public Vector3 rotation
        {
            get
            {
                return m_rotation;
            }
            set
            {
                m_rotation = value;
            }
        }
        public Vector3 position
        {
            get
            {
                return m_position;
            }
            set
            {
                m_position = value;
            }
        }

        public Vector3 scale
        {
            get
            {
                return m_scale;
            }
        }

        // constructor
        public GameModel(Game p_game, String p_modelAsset, Vector3 p_position, Vector3 p_rotation, Vector3 p_scale)
        {
            m_position = p_position;
            m_rotation = p_rotation;
            m_scale = p_scale;
            
            m_model = p_game.Content.Load<Model>("Models\\" + p_modelAsset);
        }
    }
}
